import Mock from 'mockjs'

//创建指定的字符串
var data=Mock.mock({
    "name|1-10":"老刘"
})
//console.info(data);
//生成随机的字符串
var data=Mock.mock({
    "name":"@cword(4,10)"
})
//console.info(data);
//生成标题和句子
var data=Mock.mock({
    title:"@ctitle()",
    juzi:"@csentence()"
})
//console.info(data);
//生成段落
var data=Mock.mock({
    dl:"@cparagraph()"
})
//console.info(data);
//生成指定·数字
var data=Mock.mock({
    "sz|1-99":1
})
//console.info(data);
//生成增量数字
var data=Mock.mock([
    {
        id:"@increment()"
    },
    {
        id:"@increment()"
    }
])
//console.info(data);
//生成姓名-地址-身份证号
var data=Mock.mock({
    name:"@cname()",
    address:"@city(true)",
    cardId:"@id()"
})
//console.info(data);
//生成图片
var data=Mock.mock({
    //im:"@image('200*200','#EEA9B8','#FF00FF','png','老刘')"
    image: "@image('300x300', '#50B347', '#FFF', 'laoliu')"
})
//console.info(data);
//生成日期
var data=Mock.mock({
    dt:"@date(yyyy-MM-dd hh:mm:ss)"
})
//console.info(data);